@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
     <form id="deptForm">
        <div class="form-horizontal" id="deptInfoForm">

            <input type="hidden" name="id" id="id" value="${office.id}">

            <div class="row">
				<div class="col-sm-6 b-r">
					<#input id="pName" name="上级部门" readonly="readonly" hidden="parentId"
                            hiddenValue="${office.parentId}" value="${pName}"
                            clickFun="DeptInfoDlg.showDeptSelectTree(); return false;"
                            style="background-color: #ffffff !important;"/>

                    <div class="hr-line-dashed"></div>
					<#input id="name" name="部门名称" underline="true" value="${office.name}" />

					<#input id="code" name="部门编号" underline="true" value="${office.code}" />

					<#input id="sort" name="排序" underline="true"  value="${office.sort}" />

					<#select id="type" name="机构类型" value="${office.type}">
						<option value="1"
						@if(office.type=="1"){
						    selected
						@}
						>公司</option>
						<option value="2"
						@if(office.type=="2"){
						    selected
						@}
						>部门</option>
						<option value="3"
						@if(office.type=="3"){
						    selected
						@}
						>岗位</option>
					</#select>
                    <div class="hr-line-dashed"></div>
					<#input id="remarks" name="备注" underline="true" value="${office.remarks}" />
				</div>
				<div class="col-sm-6">
					<#input id="master" name="负责人" underline="true" value="${office.master}" />

					<#input id="phone" name="电话" underline="true" value="${office.phone}" />

					<#input id="fax" name="传真" underline="true" value="${office.fax}"  />

					<#input id="email" name="邮箱" underline="true" value="${office.email}"  />

					
				    <#select id="useable" name="是否启用"  underline="true" value="${office.useable}">
						<option value="1" 
						@if(office.useable=="1"){
						    selected
						@}
						>是</option>
						<option value="0" 
						@if(office.useable=="0"){
						    selected
						@}
						>否</option>
					</#select>


				    <#input id="address" name="地址" underline="true" value="${office.address}"  />
				
				</div>
				
			</div>


            <!-- 父级部门的选择框 -->
            <div id="parentDeptMenu" class="menuContent"
                 style="display: none; position: absolute; z-index: 200;">
                <ul id="parentDeptMenuTree" class="ztree tree-box" style="width: 245px !important;"></ul>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="DeptInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="DeptInfoDlg.close()"/>
                </div>
            </div>
        </div>
        </form>
    </div>
</div>
<script src="/modular/system/dept/dept_info.js"></script>
@}
